//公用js
document.write('<script src="../js/dataTables/js/jquery.dataTables.js" type="text/javascript"></script>');
document.write('<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>');
document.write('<script type="text/javascript" src="../js/wangEditor-3.1.1/release/wangEditor.min.js"></script>');
document.write('<script type="text/javascript" src="../js/encrypt/md5.js"></script>');
document.write('<script type="text/javascript" src="../js/encrypt/aes.js"></script>');
document.write('<script type="text/javascript" src="../js/encrypt/encryptCode.js"></script>');
document.write('<script src="../js/loginout.js"></script>');
document.write('<script src="../js/md5.js"></script>');
document.write('<script src="../js/artDialog4.1.7/jquery.artDialog.js"></script>');
document.write('<script src="../js/uploadFile/upload.js"></script>');
//document.write('');

/**
 * 删除数据
 */
function deleteData(url){
	var id = $("#delete_id").val();
	var st = new String(id.replace(/\s/g, "+"), 'utf-8');
	var deleteId = decryptCode(st.toString());
	$.ajax({
		headers:{
			token : token
		},
		url : url,
		data : {
			ids : deleteId
		},
		type : 'post',
		success : function(resp){
			if(resp.success){
				$(".del-confirm-cover").hide();
				$("#delete_id").val('');
				$('#gridTable').DataTable().ajax.reload(); 
			} 
		}
	})
}